﻿@using SCMS.Resource
@model SCMS.UI.Models.AssetDepreciation
<script src="@Url.Content("~/Scripts/js/ajax.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="partialViewCard">
    <div class="partialViewCardHeader">
        <h3>@Resources.Global_String_AssetDepreciation</h3>
    </div>
    @using (Html.BeginForm(null, null, FormMethod.Post, new { @class = "form" }))
    {
        @Html.ValidationSummary(true)
        <br />
        <fieldset>
            <table>
                <tr>
                    <td align="right" valign="top" class="editor-label" style="font-weight: bold;">
                        @Resources.Global_String_AssetName:
                    </td>
                    <td align="left" class="editor-field">
                        @Html.DropDownListFor(x => x.EntityAsset.Id, Model.Assets, Resources.Global_String_PleaseSelect, new { @id = "assetId", onchange = "javascript:AssetDepreciationDetails(this);" })
                        @Html.ValidationMessageFor(x => x.EntityAsset.CurrentOwnerId)
                    </td>
                </tr>
            </table>
        </fieldset>
    }
</div>
